﻿@using Tienda.Models
@model AddPersonaModel
@{
    ViewBag.Title = "AgregarCliente";
}
@section script{
<script type="text/javascript" src="~/Scripts/jquery-2.0.3.min.js"></script>
  <script type="text/javascript" src="~/Scripts/jquery.validate.min.js"></script>
<script type="text/javascript" src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
    }

    <div class="wrapper">
        <img src="~/img/post-divider.png" class="imageform" />
        <br />
        <br />
        <h2 class="home-block-heading"><span>Agregar un Cliente</span></h2>
        <br />
        <br />
        @using (Html.BeginForm("AgregarCliente", "Cliente", FormMethod.Post, new { id = "formingcliente" }))
        {
            <br />
            @Html.DisplayNameFor(a => a.Rut)<br />
            @Html.TextBoxFor(a => a.Rut)
            @Html.ValidationMessageFor(a => a.Rut)<br />


            @Html.DisplayNameFor(a => a.Nombre)<br />
            @Html.TextBoxFor(a => a.Nombre)
            @Html.ValidationMessageFor(a => a.Nombre)<br />


            @Html.DisplayNameFor(a => a.Apellido)<br />
            @Html.TextBoxFor(a => a.Apellido)
            @Html.ValidationMessageFor(a => a.Apellido)<br />


            @Html.DisplayNameFor(a => a.Direccion)<br />
            @Html.TextBoxFor(a => a.Direccion)
            @Html.ValidationMessageFor(a => a.Direccion)<br />

            @Html.DisplayNameFor(a => a.Telefono)<br />
            @Html.TextBoxFor(a => a.Telefono)
            @Html.ValidationMessageFor(a => a.Telefono)<br />
            <br />
            <div>
                <input type='submit' value='Guardar' class='boton' name='boton' id="Enviar">
            </div>
            <br />
        }
        <img src="~/img/post-divider-inverted.png" class="imageform" />
    </div>